package com.beans;

import com.animations.Tag;
import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class ListenerBean extends Bean {

  public void initBean(Magicanvas cvs) {
    cvs.addMouseListener(
      new MouseAdapter() {
        public void mousePressed(MouseEvent e) {
          if (!Tag._isPlay()) Tag._openPlaySwitch();
        }
      }
    );
  }
}
